package com.ruoyi.project.system.strategy.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 策略生成对象 tb_diy_strategy
 * 
 * @author ruoyi
 * @date 2021-12-28
 */
public class TbDiyStrategy extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 策略名称 */
    @Excel(name = "策略名称")
    private String strategyNm;

    /** 策略代码 */
    @Excel(name = "策略代码")
    private String strategyCd;

    /** 创建人 */
    @Excel(name = "创建人")
    private String creatorNm;

    /** 创建人ID */
    @Excel(name = "创建人ID")
    private String creatorId;

    /** 生效标志 */
    @Excel(name = "生效标志")
    private String isInvalid;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createTm;

    /** 策略定义 */
    @Excel(name = "策略定义")
    private String strategyContent;

    /** 策略适用板块 */
    @Excel(name = "策略适用板块")
    private String applyBoard;

    public void setStrategyNm(String strategyNm)
    {
        this.strategyNm = strategyNm;
    }

    public String getStrategyNm()
    {
        return strategyNm;
    }
    public void setStrategyCd(String strategyCd)
    {
        this.strategyCd = strategyCd;
    }

    public String getStrategyCd()
    {
        return strategyCd;
    }
    public void setCreatorNm(String creatorNm)
    {
        this.creatorNm = creatorNm;
    }

    public String getCreatorNm()
    {
        return creatorNm;
    }
    public void setCreatorId(String creatorId)
    {
        this.creatorId = creatorId;
    }

    public String getCreatorId()
    {
        return creatorId;
    }
    public void setIsInvalid(String isInvalid)
    {
        this.isInvalid = isInvalid;
    }

    public String getIsInvalid()
    {
        return isInvalid;
    }
    public void setCreateTm(Date createTm)
    {
        this.createTm = createTm;
    }

    public Date getCreateTm()
    {
        return createTm;
    }
    public void setStrategyContent(String strategyContent)
    {
        this.strategyContent = strategyContent;
    }

    public String getStrategyContent()
    {
        return strategyContent;
    }
    public void setApplyBoard(String applyBoard)
    {
        this.applyBoard = applyBoard;
    }

    public String getApplyBoard()
    {
        return applyBoard;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("strategyNm", getStrategyNm())
            .append("strategyCd", getStrategyCd())
            .append("creatorNm", getCreatorNm())
            .append("creatorId", getCreatorId())
            .append("isInvalid", getIsInvalid())
            .append("createTm", getCreateTm())
            .append("strategyContent", getStrategyContent())
            .append("applyBoard", getApplyBoard())
            .toString();
    }
}
